
export LIBXSLT_INSTALL_HNP_PATH=${HNP_PUBLIC_PATH}/libxslt.org/libxslt_v1.1.43

echo renshang ................................. ${LIBXML2_INSTALL_HNP_PATH}

${CMAKE} \
    -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
    -DCMAKE_INSTALL_PREFIX=${LIBXSLT_INSTALL_HNP_PATH} \
    -DCMAKE_C_FLAGS="${CXXFLAGS} -I${LIBXML2_INSTALL_HNP_PATH}/include/libxml2/ -L${LIBXML2_INSTALL_HNP_PATH}/lib/" \
    -DLIBXSLT_WITH_PYTHON=OFF \
    -DBUILD_SHARED_LIBS=OFF \
    -DLIBXML2_DIR=${LIBXML2_INSTALL_HNP_PATH}/lib/ \
    -DCMAKE_PREFIX_PATH=${LIBXML2_INSTALL_HNP_PATH}/lib/cmake/libxml2/ \
    -DCMAKE_LIBRARY_PATH=${LIBXML2_INSTALL_HNP_PATH}/lib/ \
    -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
    -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \
    -DCMAKE_INSTALL_RPATH=${LIBXML2_INSTALL_HNP_PATH}/lib/ \
    -DCMAKE_EXE_LINKER_FLAGS="-L${LIBXML2_INSTALL_HNP_PATH}/lib/" \
    -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=build


make VERBOSE=1 
make PREFIX=${LIBXSLT_INSTALL_HNP_PATH} install


cp hnp.json ${LIBXSLT_INSTALL_HNP_PATH}/
pushd ${LIBXSLT_INSTALL_HNP_PATH}/../
    ${HNP_TOOL} pack -i ${LIBXSLT_INSTALL_HNP_PATH} -o ${ARCHIVE_PATH}/
    tar -zvcf ${ARCHIVE_PATH}/ohos_libxslt_v1.1.43.tar.gz libxslt_v1.1.43/
popd